//
//  HotelTools.m
//  Go!
//
//  Created by rimi on 16/7/8.
//  Copyright © 2016年 凌风. All rights reserved.
//

#import "HotelTools.h"

@implementation HotelTools

//获取当前城市名字
+(NSString *)hotelWithCurrentCity{
    NSArray *cityArrays = [[NSUserDefaults standardUserDefaults] objectForKey:AllCitiesArray];
    NSString *cityID = [[NSUserDefaults standardUserDefaults] objectForKey:currentCity_ID];
    NSString *cityName;
    NSString *name = nil;
    for (int i = 0; i<cityArrays.count; i++) {
        cityName = [NSString stringWithFormat:@"%@", cityArrays[i][@"city_id"]];
        if ([cityName isEqualToString:cityID]) {
            name = cityArrays[i][@"short_name"];
        }
    }
    return name;
}

@end
